<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function fn(a,b,c,...arg){
            console.log(arguments);
            console.log(arguments.length);

            console.log(a,b);

            // ...arg 获取到的是 剩余实参列表
            console.log(arg);
            console.log(arg.length);
        }

        fn(1,2,3,4,5,6,7);

        // 函数的形参个数，不包含rest参数个数
        console.log(fn.length);

    </script>
</body>
</html>